object Functions {
  def addOne(list: List[Int]): List[Int] = list.map(_ + 1)

  def filterEven(list2: List[Int]): List[Int] = list2.filter(_ % 2 == 0)

  def mapReduce(list3: List[Int])(mapFunc: Int => Int)(reduceFunc: (Int, Int) => Int): Int = {
    list3.map(mapFunc).reduce(reduceFunc)
  }
}
